package zgxt;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;

public class Test1 {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String s = br.readLine();
        String[] split = s.substring(1, s.length() - 1).split(", ");
        List<Integer> list = new ArrayList<>();
        for (String num : split) {
            list.add(Integer.parseInt(num));
        }
        System.out.println(list.stream().distinct().collect(Collectors.toList()));
    }
}
